package com.atguigu.edu2021.mock.bean;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 课程 课程
 * </p>
 *
 * @author zhangchen
 * @since 2021-09-05
 */
@Data
public class CourseInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 课程名称
     */
    private String courseName;

    /**
     * 课程标语
     */
    private String courseSlogan;

    /**
     * 课程封面
     */
    private String courseCoverUrl;

    /**
     * 学科id
     */
    private Long subjectId;

    /**
     * 讲师名称
     */
    private String teacher;

    /**
     * 发布者id
     */
    private Long publisherId;

    /**
     * 章节数
     */
    private Long chapterNum;

    /**
     * 价格
     */
    private BigDecimal originPrice;

    /**
     * 优惠金额
     */
    private BigDecimal reduceAmount;

    /**
     * 实际价格
     */
    private BigDecimal actualPrice;

    /**
     * 课程介绍
     */
    private String courseIntroduce;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 是否删除
     */
    private String deleted;

    /**
     * 更新时间
     */
    private Date updateTime;


    @TableField(exist = false)
    private List<ChapterInfo> chapterInfoList;

    @Override
    public String toString() {
        return "CourseInfo{" +
        "id=" + id +
        ", courseName=" + courseName +
        ", courseSlogan=" + courseSlogan +
        ", courseCoverUrl=" + courseCoverUrl +
        ", subjectId=" + subjectId +
        ", teacher=" + teacher +
        ", publisherId=" + publisherId +
        ", chapterNum=" + chapterNum +
        ", originPrice=" + originPrice +
        ", reduceAmount=" + reduceAmount +
        ", actualPrice=" + actualPrice +
        ", courseIntroduce=" + courseIntroduce +
        ", createTime=" + createTime +
        ", deleted=" + deleted +
        ", updateTime=" + updateTime +
        "}";
    }
}
